package com.zy.dao;

import com.zy.pojo.Department;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: xiaoqi
 * Date: 2021/5/31
 * Time: 下午 16:29
 * Description: 部门持久层接口
 */
public interface DepartmentDao {

    Integer insertDepartment(Department department);

    Integer getDepartmentPeopleCount(Integer id);

    Integer deleteDepartmentById(Integer id);

    Integer updateDepartment(Department department);

    List<Department> getDepartmentList(Integer page, Integer limit);

    Department getDepartmentById(Integer id);

    Integer getDepartmentCount();
}